<nav class="breadcrumb page-nav" id="pathContainer">
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span>扶贫对象管理</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-primary">贫困户管理</span>
</nav>
<div class="Hui-article" id="MainList">
    <!-- search module start -->
    <div>
        <div class="row cl searchBox">
            <form class="form form-horizontal responsive" id="searchForm" novalidate="novalidate">
                <div class="clearfix">
                    <div class="conditionBox col-sm-2">
                        <label for="">所在省:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="province" value="">
                                <option value="河北省" readOnly>河北省</option>
                            </select>
                            <input type="hidden" value="河北省" id="h-province">
                        </div>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">所在市:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="city" value="">
                                <option value="邯郸市" readOnly>邯郸市</option>
                            </select>
                            <input type="hidden" value="邯郸市" id="h-city">
                        </div>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">所在县:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="cty" value="">
                                <option value="魏县" readOnly>魏县</option>
                            </select>
                            <input type="hidden" value="魏县" id="h-cty">
                        </div>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">所在乡:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" id="cry" value="">
                                <option value="">请选择</option>
                            </select>
                            <input type="hidden" value="" name="cry" id="h-cry">
                        </div>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">所在村:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" value="" id="name" id="village">
                                <option value="">请选择</option>
                            </select>
                            <input type="hidden" value="" name="village" id="h-name">
                        </div>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">年度:</label>
                        <input type="text" class="input-text pointer radius" placeholder="请输入年度" name="year" id="year" readonly/>
                    </div>
                    <!-- <div class="conditionBox col-sm-2">
                        <label for="">脱贫状态:</label>
                        <div class="formControls">
                            <select class="select-box select radius save_from" size="1" name="poverty" id="poverty">
                                <option value="">请选择</option>
                                <option value="返贫">返贫</option>
                                <option value="未脱贫">未脱贫</option>
                                <option value="已脱贫（享受政策）">已脱贫（享受政策）</option>
                                <option value="已脱贫（不再享受政策）">已脱贫（不再享受政策）</option>
                                <option value="防贫户">防贫户</option>
                            </select>
                        </div>
                    </div> -->
                    <div class="conditionBox col-sm-2">
                        <label for="">贫困户属性:</label>
                        <div class="formControls">
                            <select class="select-box select radius save_from" size="1" name="attribute" value="" id="attribute">
                                <option value="">请选择</option>
                                <option value="一般贫困户">一般贫困户</option>
                                <option value="低保户">低保户</option>
                                <option value="五保户">五保户</option>
                                <option value="低保贫困户">低保贫困户</option>
                                <option value="一般农户">一般农户</option>
                                <option value="五保贫困户">五保贫困户</option>
                            </select>
                        </div>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">贫困人口姓名:</label>
                        <input type="text" class="input-text radius" placeholder="贫困人口姓名" name="name" id="poorName" />
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">证件号码:</label>
                        <input type="text" class="input-text radius" placeholder="证件号码" name="idNumber" id="idNumber"/>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">与户主关系:</label>
                        <div class="formControls">
                            <select class="select-box select radius" size="1" name="relation" id="relation">
                                <option value="">请选择</option>
                                <option value="户主">户主</option>
                                <option value="配偶">配偶</option>
                                <option value="之子">之子</option>
                                <option value="之女">之女</option>
                                <option value="之儿媳">之儿媳</option>
                                <option value="之女婿">之女婿</option>
                                <option value="之孙子">之孙子</option>
                                <option value="之孙女">之孙女</option>
                                <option value="之外孙子">之外孙子</option>
                                <option value="之外孙女">之外孙女</option>
                                <option value="之父">之父</option>
                                <option value="之母">之母</option>
                                <option value="之岳父">之岳父</option>
                                <option value="之岳母">之岳母</option>
                                <option value="之公公">之公公</option>
                                <option value="之婆婆">之婆婆</option>
                                <option value="之祖父">之祖父</option>
                                <option value="之祖母">之祖母</option>
                                <option value="之外祖父">之外祖父</option>
                                <option value="之外祖母">之外祖母</option>
                                <option value="其他">其他</option>
                            </select>
                        </div>
                    </div>
                    <div class="conditionBox col-sm-2">
                        <label for="">防贫属性:</label>
                        <div class="formControls">
                            <select class="select-box select radius save_from" size="1" value="" name="preventAttribute" id="preventAttribute">
                                <option value="">请选择</option>
                                <option value="非高标准脱贫户">非高标准脱贫户</option>
                                <option value="非贫低收入户">非贫低收入户</option>
                            </select>
                        </div>
                    </div>

                    <div class="row cl" id="poverty" style="white-space:nowrap;">
                        <label for="">脱贫状态:</label>
                        <div class="prverty-add-right" style="vertical-align: inherit;">
                            <div class="inline-block pl-5 mr-10">
                                <input type="checkbox" class="povertyCheckbox" id="povertyIpt1" value="返贫">
                                <label for="povertyIpt1">返贫</label>
                            </div>
                            <div class="inline-block pl-5 mr-10">
                                <input type="checkbox" class="povertyCheckbox" id="povertyIpt2" value="未脱贫">
                                <label for="povertyIpt2">未脱贫</label>
                            </div>
                            <div class="inline-block pl-5 mr-10">
                                <input type="checkbox" class="povertyCheckbox" id="povertyIpt3" value="已脱贫（享受政策）">
                                <label for="povertyIpt3">已脱贫（享受政策）</label>
                            </div>
                            <div class="inline-block pl-5 mr-10">
                                <input type="checkbox" class="povertyCheckbox" id="povertyIpt4" value="已脱贫（不再享受政策）">
                                <label for="povertyIpt4">已脱贫（不再享受政策）</label>
                            </div>
                            <div class="inline-block pl-5 mr-10">
                                <input type="checkbox" class="povertyCheckbox" id="povertyIpt5" value="防贫户">
                                <label for="povertyIpt5">防贫户</label>
                            </div>
                        </div>
                    </div>

                </div>
            </form>
            <div class="clearfix search-btns margin-padding-none btn-div">
                <div id="button-List"></div>
            </div>
        </div>
    </div>
    <!-- search module end -->
    <div class="table-scroll3">
        <form action="" id="form1">
            <table class="table table-border table-bordered">
                <thead class="text-c row cl table-bgcolor-gary" id="thead">
                    <tr>
                        <th></th>
                        <th>序号</th>
                        <th>所在乡</th>
                        <th>所在村</th>
                        <th>户编号</th>
                        <th>户主个人编号</th>
                        <th>户主姓名</th>
                        <th>户主证件号码</th>
                        <th>脱贫状态</th>
                        <th>家庭人口数</th>
                        <th>贫困户属性</th>
                        <th>人均纯收入</th>
                        <th>防贫属性</th>
                        <th>防贫原因</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody class="text-c row cl" id="tbody1"></tbody>
            </table>
        </form>
    </div>
    <div class="page pt-10 clearfix">
        <div class="f-l" style="white-space: nowrap;" id="pageContainer"></div>
        <div class="f-r" id="pageBtn">
            <input type="button" value="首页" class="page-btn" id="firstPage">
            <input type="button" value="上一页" class="page-btn" id="prevPage">
            <input type="button" value="下一页" class="page-btn" id="nextPage">
            <input type="button" value="尾页" class="page-btn" id="lastPage">
        </div>
    </div>
</div>
<!-- 页面主模板 start-->
<script id="list1" type="text/x-handlebars-template">
    \{{#each resultList}}
    <tr>
        <td class="helpTd">
            <input type="checkbox" name="checkboxqq" class="radio" value="\{{id}}">
        </td>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{country}}</td>
        <td>\{{village}}</td>
        <td>\{{number}}</td>
        <td>\{{hNumber}}</td>
        <td>\{{hName}}</td>
        <td>\{{hIdNumber}}</td>
        <td>\{{poverty}}</td>
        <td>\{{count}}</td>
        <td>\{{attribute}}</td>
        <td>\{{perCapita}}</td>
        <td>\{{preventAttribute}}</td>
        <td>\{{preventReason}}</td>
        <td width="250" id="\{{id}}" attr-time="\{{addTime}}">
            \{{#if button-PoorFamilyRetrieve}}
            <button type="button" class="btn btn-primary size-S detail_btn save_from">查看</button>\{{/if}} \{{#if button-PoorFamilyEdit}}
            <button type="button" class="btn btn-primary size-S edit_btn save_from">编辑</button>\{{/if}} \{{#if button-PoorFamilyRemove}}
            <button type="button" class="btn btn-primary size-S del_btn">删除</button>\{{/if}} \{{#if button-PoorFamilyVisit}}
            <button type="button" class="btn btn-primary size-S interview_btn save_from">帮扶</button>\{{/if}}
            <button type="button" class="btn btn-primary size-S Street_btn">街景设置</button>
        </td>
    </tr>
    \{{/each}}
</script>
<script id="buttonList" type="text/x-handlebars-template">
    \{{#if button-PoorFamilySearch}}
    <input type="button" class="btn btn-primary  queryBtn btn-secondary" value="查 询" />
    \{{/if}}
    \{{#if button-PoorFamilyAdd}}
    <input class="btn btn-secondary add_btn save_from" type="button" value="新增">
    \{{/if}}
    <input class="btn btn-secondary refresh_btn" type="button" value="刷新">
    \{{#if button-PoorFamilyImport}}
    <label for="file" class="btn btn-secondary import_btn" style="width: auto;">导入</label>
    \{{/if}}
    <input class="btn btn-secondary" name="file" id="file" type="file" style="display: none;">
    \{{#if button-PoorFamilyExport}}
    <input class="btn btn-secondary export_btn" type="button" value="导出">
    \{{/if}}
    \{{#if button-PoorFamilyDepoor}}
    <input class="btn btn-secondary outPoor_btn" type="button" value="脱贫">
    \{{/if}}
    \{{#if button-PoorFamilyRepoor}}
    <input class="btn btn-secondary inPoor_btn" type="button" value="返贫">
    \{{/if}}
</script>
<!-- 页面主模板 end-->
<!-- 分页模板 start -->
<script id="page" type="text/x-handlebars-template">
    <span>共有\{{rowCount}}条记录，</span>
    <label for="ipt2">每页行数：</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageSize">
            <option value="10" selected>10</option>
            <option value="20">20</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="200">200</option>
            <option value="300">300</option>
        </select>
    </span>
    <label for="ipt2">当前第</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageCount">
            \{{#each pageCount}}
            <option value="\{{pageCount}}">\{{pageCount}}</option>
            \{{/each}}
        </select>
    </span>
    <span>页</span>
</script>
<!-- 分页模板 end -->
<!-- 脱贫和返贫的弹出窗 -->
<div class="change-box" style="display: none">
    <form action="" id="form-change">
        <div class="clearfix">
            <!-- <div class="pop-unit col-sm-2 mr20 w230">
                <label for="" class="pop-label fl txt-right">变更年度:</label>
                <div class="pop-content fl">
                    <select class="select-box select radius" size="1" name="year" value="">
                        <option value="" readonly="" name="">2017年</option>
                    </select>
                </div>
            </div> -->
            <div class="pop-unit col-sm-2 fl w230">
                <label for="" class="pop-label fl txt-right">变更日期:</label>
                <div class="pop-content fl">
                    <input type="text" name="year" class="pop-input radius" id="change-date" readonly>
                </div>
            </div>
        </div>
        <div class="pop-unit col-sm-2 fl">
            <label for="" class="pop-label fl txt-right ">类型:</label>
            <div class="pop-content fl w399">
                <select class="pop-input radius" size="1" name="changes" value="" id="changes-type">
                    <option value="" selected="selected" class="outinPoor"></option>
                </select>
            </div>
        </div>
        <div class="pop-unit col-sm-2 fl">
            <label for="" class="pop-label fl txt-right">具体原因:</label>
            <div class="pop-content fl w399">
                <textarea name="reason" id="reason" cols="30" rows="10" class="pop-input radius" maxlength="200"></textarea>
            </div>
        </div>
        <div class="f-r">
            <input type="button" value="保存" class="btn btn-primary input-btn mr20 save_from">
        </div>
    </form>
</div>
<script>
new povertyStrickenMng();
Handlebars.registerHelper('langFuMethod', function(value,text){
	if(!value||value==""||value=="否"){
        return '';
	}else{
		return '<span class="bangfu-method-item">'+ text +'</span>';
	}
});
</script>